package com.flxz.forum.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.flxz.common.annotation.Excel;
import com.flxz.common.core.domain.BaseEntity;

/**
 * 讨论回复对象 forum_reply
 * 
 * @author fl
 * @date 2025-09-14
 */
public class ForumReply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回复ID */
    private Long replyId;

    /** 主题ID */
    @Excel(name = "主题ID")
    private Long topicId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 父回复ID（用于楼中楼回复） */
    @Excel(name = "父回复ID", readConverterExp = "用=于楼中楼回复")
    private Long parentReplyId;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String replyContent;

    /** 回复类型（0普通回复 1最佳答案） */
    @Excel(name = "回复类型", readConverterExp = "0=普通回复,1=最佳答案")
    private String replyType;

    /** 点赞次数 */
    @Excel(name = "点赞次数")
    private Integer likeCount;

    /** 回复顺序 */
    @Excel(name = "回复顺序")
    private Integer replyOrder;

    /** 状态（0正常 1删除） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=删除")
    private String status;

    /** 是否匿名（0否 1是） */
    @Excel(name = "是否匿名", readConverterExp = "0=否,1=是")
    private String isAnonymous;

    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }

    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setParentReplyId(Long parentReplyId) 
    {
        this.parentReplyId = parentReplyId;
    }

    public Long getParentReplyId() 
    {
        return parentReplyId;
    }

    public void setReplyContent(String replyContent) 
    {
        this.replyContent = replyContent;
    }

    public String getReplyContent() 
    {
        return replyContent;
    }

    public void setReplyType(String replyType) 
    {
        this.replyType = replyType;
    }

    public String getReplyType() 
    {
        return replyType;
    }

    public void setLikeCount(Integer likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Integer getLikeCount() 
    {
        return likeCount;
    }

    public void setReplyOrder(Integer replyOrder) 
    {
        this.replyOrder = replyOrder;
    }

    public Integer getReplyOrder() 
    {
        return replyOrder;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setIsAnonymous(String isAnonymous) 
    {
        this.isAnonymous = isAnonymous;
    }

    public String getIsAnonymous() 
    {
        return isAnonymous;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("replyId", getReplyId())
            .append("topicId", getTopicId())
            .append("userId", getUserId())
            .append("parentReplyId", getParentReplyId())
            .append("replyContent", getReplyContent())
            .append("replyType", getReplyType())
            .append("likeCount", getLikeCount())
            .append("replyOrder", getReplyOrder())
            .append("status", getStatus())
            .append("isAnonymous", getIsAnonymous())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
